package com.cmxh.shipper.mapper;

import com.cmxh.shipper.pojo.Freightsources;

import java.util.List;

/**
 * @author 32614
 * @description 针对表【freightsources(存储货源相关信息的表)】的数据库操作Mapper
 * @createDate 2025-04-17 15:19:23
 * @Entity com.cmxh.shipper.pojo.Freightsources
 */
public interface FreightsourcesMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Freightsources record);

    int insertSelective(Freightsources record);

    Freightsources selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Freightsources record);

    int updateByPrimaryKey(Freightsources record);


    // 查询货源根据货源状态
    List<Freightsources> selectHuoYuanBYStatus(Freightsources freightsources);

    // 查询全部货源
    List<Freightsources> selectHuoYuan(Integer dirverid);
    //发部货源成功
    Freightsources selectHuoYuanw(Integer sourceid);

    //定时更新货源状态
     void updateStatus();
     //定时更新货源状态
     void  updateStatus2();
     //定时更新货源余量
     void  updateStatus3();

     int updates(Integer sourceid);

}
